<me:UIQIFWB08 x:Class="WPFExcelReport.TFWB08"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:HR="clr-namespace:WPFExcelReport;assembly=THRSTAMM" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM" 
                    xmlns:BW="clr-namespace:WPFExcelReport;assembly=TWBBEW" 
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBDAT" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR" 
                   x:Name="TV" 
                   FontSize="16" 
                  Loaded="Window_Loaded"
     >
    <me:UIQIFWB08.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:SubStrConverter x:Key="substr"/>
        <ucd:NOTConverter x:Key="not"/>
    </me:UIQIFWB08.Resources>
    <StackPanel>
        <WrapPanel>
            <WrapPanel  Margin="20,5,0,0" VerticalAlignment="Center" >
                <TextBlock  Text="{Binding Source={Localization:Translate Word=卷号:}}" VerticalAlignment="Center"/>
                <Label  Margin="5,0,0,0" Grid.Column="1"  Foreground="Red"  
                                      Content="{Binding WBBSTKNR,Converter={StaticResource substr},ConverterParameter=8+4}" Width="60" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
                <TextBlock Margin="5,0,0,0"  Text="{Binding Source={Localization:Translate Word=标签长:}}" VerticalAlignment="Center"/>
                <ex:TXT72 Margin="5,0,0,0"  Text="{Binding QTY,ElementName=TV, Converter={StaticResource d1000}}"
                                       IsAutoClear="{Binding IsDBChg,ElementName=TV,Converter={StaticResource not}}"
                                       Grid.Column="1"    Width="60" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"  
                                  />
                <TextBlock Margin="5,0,0,0"  Text="{Binding Source={Localization:Translate Word=门幅:}}" VerticalAlignment="Center"/>
                <ex:TXT72 Margin="5,0,0,0"  Text="{Binding WBBSBRT, Converter={StaticResource d100}}"
                                      IsAutoClear="{Binding IsDBChg,ElementName=TV,Converter={StaticResource not}}"
                                       Grid.Column="1"  Width="60" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"  
                                  />
                <TextBlock Margin="5,0,0,0" FontSize="16"   Text="{Binding Source={Localization:Translate Word=纬密:}}" VerticalAlignment="Center" />
                <ex:TXT72 Margin="5,0,0,0"  Text="{Binding WBBHHK1, Converter={StaticResource d1000}}"  
                                       IsAutoClear="{Binding IsDBChg,ElementName=TV,Converter={StaticResource not}}"
                                       Grid.Column="1"   Width="60" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"  
                                  />
                <Button  Margin="5,0,0,0" Height="40" Width="60"   
                         Visibility="{Binding IsDBChg,ElementName=TV,Converter={StaticResource bv}}" Content="保存" Click="ChgQtyCommand"/>
            </WrapPanel>
            <WrapPanel Margin="10,5,0,0">
                <SD:QLTBOX QUALITY="{Binding QUALITY,ElementName=TV}"
                           IsFinish="True" />
                <Button  Margin="5,0,0,0" Content="{Binding Source={Localization:Translate Word=定等}}"  VerticalAlignment="Center"  Click="QulityCommand" 
                         Visibility="{Binding IsKWT,ElementName=TV,Converter={StaticResource bv}}"/>
                <TextBlock  Margin="5,0,0,0" Text="{Binding TTPOINTS,ElementName=TV}"  
                            Foreground="Red" VerticalAlignment="Center" Visibility="{Binding IsKWT,ElementName=TV,Converter={StaticResource bv}}"/>
                <TextBlock  Margin="5,0,0,0" Text="{Binding Source={Localization:Translate Word=分}}" Foreground="Red" VerticalAlignment="Center"
                            Visibility="{Binding IsKWT,ElementName=TV,Converter={StaticResource bv}}"  />
                <Label HorizontalContentAlignment="Center"   VerticalContentAlignment="Center" Content="{Binding WBBZENSURKZ}"  
                       Background="Yellow" Width="40" Height="40" VerticalAlignment="Center" 
                       Visibility="{Binding IsUBT,ElementName=TV,Converter={StaticResource nbv}}"
                       />
                <TextBlock  Text="{Binding QUALITY,ElementName=TV,Converter={StaticResource substr},ConverterParameter=11+1}" 
                            Visibility="{Binding IsUBT,ElementName=TV,Converter={StaticResource bv}}"
                            Background="Yellow" Width="40" Height="40" VerticalAlignment="Center" />
                <DR:TDRAUFTR  Grid.Column="0" Name="cDR" DocType="{Binding PRTYPE,ElementName=TV}"
                              Visibility="Collapsed"
                             PrintType="DirectPrint" />
                <Button  Grid.Column="1"   Click="PrintLBCommand"  Margin="5,0,0,0" Width="60" Height="40" 
                         Content="{Binding Source={Localization:Translate Word=标签}}" />
            </WrapPanel>
            
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsUBT,ElementName=TV,Converter={StaticResource bv}}">
            <TextBlock Margin="5,0,0,0"  Text="{Binding Source={Localization:Translate Word=降等原因:}}" VerticalAlignment="Center" Width="180"/>
            <ex:TXT72 Text="{Binding WBBBEM,Converter={StaticResource gb2312}}" MaxLength="15"/>
        </WrapPanel>
    </StackPanel>
</me:UIQIFWB08>
